package com.jxgm.spring.boot.config;

import com.jxgm.spring.boot.service.HelloService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Administrator
 * @date 2020/9/9 11:30
 * @description
 **/
@Configuration
public class MyConfig {

    @Bean
    public HelloService helloService(){

        System.out.println("配置类@Bean给容器中添加组件了...");

        return new HelloService();

    }

}
